const PersonModule = {
  namespaced: true,
  state() {
    return {
      ruleForm: {
        name: "",
        vx: "",
        date1: "",
        date2: "",
        sex: "",
        desc: ""
      },
      ruleFormP: {
        pass: "",
        checkPass: ""
      }
    };
  },
  mutations:{
    changePerson(state,ruleForm){
        state.ruleForm.name=ruleForm.name
        state.ruleForm.vx=ruleForm.vx
        state.ruleForm.date1=ruleForm.date1
        state.ruleForm.date2=ruleForm.date2
        state.ruleForm.sex=ruleForm.sex
        state.ruleForm.desc=ruleForm.desc
    },
    changePersonP(state,ruleFormP){
        state.ruleFormP.pass=ruleFormP.pass
        state.ruleFormP.checkPass=ruleFormP.checkPass
    }
  }
};
export default PersonModule
